#-------------------------------------------------
#
# Project created by QtCreator 2014-09-26T00:26:21
#
#-------------------------------------------------

QT       += core

QT       -= gui

TARGET = cs
CONFIG   += console
CONFIG   -= app_bundle

TEMPLATE = app

SOURCES += main.cpp \
    ../../com/xs.c \
    ../../com/xs_aio.c \
    ../../com/xs_aio_block.c \
    ../../com/xs_base64.c \
    ../../com/xs_config.c \
    ../../com/xs_ctrl.c \
    ../../com/xs_ev.c \
    ../../com/xs_log.c \
    ../../com/xs_malloc.c \
    ../../com/xs_md5.c \
    ../../com/xs_mempool.c \
    ../../com/xs_model.c \
    ../../com/xs_model_block.c \
    ../../com/xs_net.c \
    ../../com/xs_popen.c \
    ../../com/xs_rbtree.c \
    ../../com/xs_server.c \
    ../../com/xs_sock.c \
    ../../com/xs_sort.c \
    ../../com/xs_stat.c \
    ../../com/xs_clis.c \
    ../../com/xs_tree.c \
    csqltablemodel.cpp \
    clock.cpp

QT += sql

HEADERS += \
    main.h \
    ../../com/xs.h \
    ../../com/xs_aio.h \
    ../../com/xs_aio_block.h \
    ../../com/xs_atomic.h \
    ../../com/xs_base64.h \
    ../../com/xs_config.h \
    ../../com/xs_ctrl.h \
    ../../com/xs_def.h \
    ../../com/xs_dict.h \
    ../../com/xs_ev.h \
    ../../com/xs_hash.h \
    ../../com/xs_heap.h \
    ../../com/xs_itoa.h \
    ../../com/xs_list.h \
    ../../com/xs_log.h \
    ../../com/xs_malloc.h \
    ../../com/xs_md5.h \
    ../../com/xs_mempool.h \
    ../../com/xs_model.h \
    ../../com/xs_model_block.h \
    ../../com/xs_net.h \
    ../../com/xs_object.h \
    ../../com/xs_popen.h \
    ../../com/xs_rbtree.h \
    ../../com/xs_server.h \
    ../../com/xs_sock.h \
    ../../com/xs_sort.h \
    ../../com/xs_stat.h \
    ../../com/xs_tree.h \
    ../../com/xs_util.h \
    ../../com/xs_clis.h \
    ../../com/xs_vec.h \
    csqltablemodel.h \
    clock.h

!win32{
exists(__all_files__.c){
    system(rm __all_files__.c)
}


    for(f, SOURCES):system(echo $$f >> files.txt)
    for(f, HEADERS):system(echo $$f >> files.txt)
    system(sort files.txt > files_sort.txt)
    system(rm files.txt)
    system(./mkallfiles.sh files_sort.txt)
    SOURCES += __all_files__.c


DEFINES += XS_AUTO_GEN_FILES
}
